import numpy as np
import scipy.special as sc_special


def fit_func(nest):
    x, y = nest
    return 3 * (1 - x) ** 2 * np.e ** (-x ** 2 - (y + 1) ** 2) - 10 * (x / 5 - x ** 3 - y ** 5) * np.e ** (
            -x ** 2 - y ** 2) - (np.e ** (-(x + 1) ** 2 - y ** 2)) / 3


if __name__ == '__main__':
    nest = 0.25869, 1.23350

    result = fit_func(nest)

    print(result)
